<?php

namespace Sisesporte\Repository;

use Doctrine\ORM\EntityRepository;

class UfRepository extends EntityRepository {
    
    public function fetchPairs() {
        $entities = $this->findAll();
        $array = array();
        
        foreach($entities as $entity) {
            $array[$entity->getSqUf()] = $entity->getSgUf();
            
        }
        
        asort($array);
        return $array;
    }
}
